﻿using Abp.Domain.Entities.Auditing;
using Hicap.QRCodeWarehouse.Core.Models.Other;
using System.ComponentModel.DataAnnotations;

namespace Hicap.QRCodeWarehouse.Core.Models.DbSet
{
    public class GenerationRule : FullAuditedEntity
    {
        [Required]
        public string GenerationRuleCode { get; set; }

        public string GenerationRuleName { get; set; }

        [Required]
        public GenerationRuleType GenerationRuleType { get; set; }

        [Required]
        public int AutoIncrementLength { get; set; }

        [Required]
        public int RandomLength { get; set; }

        [Required]
        public int SubordinateCompanyId { get; set; }

        public bool IsOnlyNumberCode { get; set; } = true;
    }
}